// pages/coach_mana/main.js

var con = require('../../utils/request.js')
var ui_tool = require('../../utils/uitool.js')

Page({
    data: {

        coach_info:{
            coach_name:"马教练",
            student_count:0,
            student_study_count:0,
            student_over_count:0,
            car_count:0,
            bind_no:33445,
        },
        grids:[
            {
                title:'今日预约',
                msg_count:1,
            },
            {
                title:'明日预约',
                msg_count:0,
            },
            {
                title:'预约表',
                msg_count:2,
            },
            {
                title:'预约历史',
                msg_count:5,
            },
            {
                title:'预约设置',
                msg_count:5,
            },
            {
                title:'添加事件',
                msg_count:5,
            },
            {
                title:'事件历史',
                msg_count:5,
            },
            {
                title:'预约时间表',
                msg_count:5,
            },
        ],
        elements: getApp().menus
    },
    onLoad: function (options) {
        // 页面初始化 options为页面跳转所带来的参数
        con.remote_call("api/list_car", {}, this);
    },
    onReady: function () {
        // 页面渲染完成
    },
    onShow: function () {
        // 页面显示

    },
    onHide: function () {
        // 页面隐藏
    },
    onUnload: function () {
        // 页面关闭
    }
})